package jwanalytics.ejb.dataobjects;

import java.io.Serializable;
import java.util.Date;

/** 
 * This represents the base class for all events processed by JWAnalytics events.
 * 
 * Basically web analytics is the storage of web campaign "responses" (views, clicks, time
 * spent on pages, etc).
 * 
 * Such "responses" are recognized from events (page hit, cookie returned, AJAX calls from pages).
 * 
 * @author aacesta
 */
public class JWAEvent implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	/** 
	 * Date and time when event was received.
	 * This is different from the date and time when the event was created
	 * which is normally a few milliseconds or seconds before when the client
	 * requested the web page (in the case of Web Analytics). 
	 */	
	private Date eventReceivedDateTime = new Date();
	
	
	public Date getEventReceivedDateTime() {
		return eventReceivedDateTime;
	}
	
	
	public void setEventReceivedDateTime(Date eventReceivedDateTime) {
		this.eventReceivedDateTime = eventReceivedDateTime;
	}	
	
	
}
